﻿/*
 * ===================================================
 * Author     : <ClueeZhuo>
 * Create Time: <2018/5/13 1:36:31>
 * Description: <This is a Description of This File.>
 * ===================================================
 */




using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace helloworld
{
    public class Startup
    {
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc();

            services.AddCap(x =>
            {
                x.UseRabbitMQ("localhost");
            });
        }

        public void Configure(IApplicationBuilder app)
        {
            app.UseMvc();
            app.UseCap();
        }
    }
}
